﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.PermissionManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="操作信息列表" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
<div style="width: 100%; display: none;">
	<table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">
		<tr>
			<td class="title" >权限编号:</td>
			<td class="content"><asp:TextBox ID="txtPERMISSIONID" runat="server"  CssClass="txt" MaxLength="8"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title" >英文名称:</td>
			<td class="content"><asp:TextBox ID="txtENGLISHNAME" runat="server"  CssClass="txt" MaxLength="128"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title" >权限代码:</td>
			<td class="content"><asp:TextBox ID="txtPERMISSIONCODE" runat="server"  CssClass="txt" MaxLength="64"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title" >页面类名:</td>
			<td class="content"><asp:TextBox ID="txtPAGECLASSNAME" runat="server"  CssClass="txt" MaxLength="128"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title" >备注:</td>
			<td class="content"><asp:TextBox ID="txtREMARK" runat="server"  CssClass="txt" MaxLength="128"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title" >是不是中心:</td>
			<td class="content"><asp:TextBox ID="txtISCENTER" runat="server"  CssClass="txt" MaxLength="8"  Rows="3" TextMode="SingleLine" ></asp:TextBox></td>
		</tr>
		<tr>
		</tr>
	</table>
</div>
<div style="width: 100%">
    <div class="listdiv">
        <table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">
            <tr>
                <td class="title"><div  class="nowrap">
                    权限名称:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtPERMISSIONNAME" runat="server" CssClass="txt" MaxLength="128"
                        Rows="3" TextMode="SingleLine"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    命令名:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCOMANDNAME" runat="server" CssClass="txt" MaxLength="128" Rows="3"
                        TextMode="SingleLine"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    分类:</div>
                </td>
                <td class="content">
                    <asp:DropDownList ID="ddlTYPE" runat="server" CssClass="ddl">
                    </asp:DropDownList>
                </td>
                <td class="title" style="width: auto;">
                    &nbsp;
                </td>
                <td class="content"><div style="width: 100px; " class="nowrap">
                    <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                        OnClick="btnSearch_Click" /></div>
                </td>
            </tr>
        </table>
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
            AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
            OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
            AllowSorting="True"  SortExpressionValue="PERMISSIONID" SortDirectionValue="DESC">
            <Columns>
			    <asp:TemplateField HeaderText="权限编号" SortExpression="PERMISSIONID">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyPERMISSIONID" runat="server" NavigateUrl='<%# Eval("PERMISSIONID", ModifyUrl) %>' Text='<%# Bind("PERMISSIONID") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="权限名称" SortExpression="PERMISSIONNAME">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyPERMISSIONNAME" runat="server" NavigateUrl='<%# Eval("PERMISSIONID", ModifyUrl) %>' Text='<%# Bind("PERMISSIONNAME") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="ENGLISHNAME" HeaderText="英文名称"  SortExpression="ENGLISHNAME" Visible="False" />
			<asp:BoundField DataField="PERMISSIONCODE" HeaderText="权限代码"  SortExpression="PERMISSIONCODE" />
			<asp:BoundField DataField="PAGECLASSNAME" HeaderText="页面类名"  SortExpression="PAGECLASSNAME" />
			<asp:BoundField DataField="COMANDNAME" HeaderText="命令名"  SortExpression="COMANDNAME" />
			<asp:BoundField DataField="CONTROLID" HeaderText="控件编号"  SortExpression="CONTROLID" />
			<asp:BoundField DataField="TYPE" HeaderText="分类"  SortExpression="TYPE" />
			<asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK" />
			<asp:BoundField DataField="ISCENTER" HeaderText="是不是中心"  SortExpression="ISCENTER" />
			<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;"><asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("PERMISSIONID", ModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
                <headerstyle width="90px" />
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
    </div>
</div>
</div>
    </form>
</body>
</html>
